import {rolelist} from '../../../request/app'
const state ={
    list:[]
}

const mutations={
    MUgetlist(state,payload){
        state.list =payload
    }
}

const actions ={
    ACgetlistpeo({commit}){
        rolelist()
        .then(res=>{
            // console.log(res);
            commit('MUgetlist',res.list)
        })
    }
}

const getters={
    getlist(state){
        return state.list
    }
}

export default {
    state,
    getters,
    actions,
    mutations,
    namespaced: true
}